package SwingModel;

import java.util.Date;

public class CmsAnnouncement {

	private int announcementID;
	private String announcementTitle;
	private String announcementContent;
	private Date createdDTM;
	private boolean isRead;

	/**
	 * This constructor instantiate an announcement.
	 * 
	 * @param announcementID
	 * @param announcementTitle
	 * @param announcementContent
	 * @param createdDTM
	 * @param isRead
	 */
	public CmsAnnouncement(int announcementID, String announcementTitle, String announcementContent, Date createdDTM, boolean isRead){
		this.announcementID = announcementID;
		this.announcementTitle = announcementTitle;
		this.announcementContent = announcementContent;
		this.createdDTM = createdDTM;
		this.isRead = isRead;
	}

	//---------------------------------------------------------
	//GETTERS AND SETTERS:
	//---------------------------------------------------------	
	public int getAnnouncementID() {
		return announcementID;
	}


	public void setAnnouncementID(int announcementID) {
		this.announcementID = announcementID;
	}


	public String getAnnouncementTitle() {
		return announcementTitle;
	}


	public void setAnnouncementTitle(String announcementTitle) {
		this.announcementTitle = announcementTitle;
	}


	public String getAnnouncementContent() {
		return announcementContent;
	}


	public void setAnnouncementContent(String announcementContent) {
		this.announcementContent = announcementContent;
	}


	public Date getCreatedDTM() {
		return new Date(createdDTM.getTime());
	}


	public void setCreatedDTM(Date createdDTM) {
		this.createdDTM = createdDTM;
	}


	public boolean getIsRead() {
		return isRead;
	}


	public void setIsRead(boolean isRead) {
		this.isRead = isRead;
	}
}